﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IceCS.DataStructure.Core.Queue;

namespace IceCS.DataStructure.BankCall
{
    public class LinkedBankQueue : LinkedQueue<int>, IBankQueue
    {
        public int CallNumber { get; set; }

        public LinkedBankQueue()
        {
            CallNumber = 1;
        }

        public int GetCallNumber()
        {
            if (IsEmpty)
            {
                CallNumber = 1;
            }
            else
            {
                CallNumber += 1;
            }
            return CallNumber;
        }
    }
}
